/********************************************
* Copyrigt (C) rumi
* Module: drv_ws2812.h
*********************************************/
#ifndef drv_ws2812_H
#define drv_ws2812_H
#include "mcu_config.h"
#include "drv_pincontrol.h"
#include "bsp_rmt.h"

typedef enum
{
	E_WS2812_INIT  = 0,
    E_WS2812_SET,
    E_WS2812_MAX,

}WS2812_CTRL_EnumDef;

typedef struct {
    uint8_t G;
    uint8_t R;  
    uint8_t B;
}WS2812_ColorData;

typedef struct {
    WS2812_ColorData color;
    PinConfig_DrvDef *pin;
}WS2812Dev_DrvDef;


uint8_t Drv_WS2812_Control(WS2812Dev_DrvDef *device,uint8_t type,void *pbuffer);

extern WS2812Dev_DrvDef Dev_WS2812;


#endif // drv_ws2812_H
/********************************************
 * End of file
*********************************************/
